package main

import "fmt"

// const 定义枚举
const (
	BEIJING = 10 * iota
	SHANGHAI
	TIANJING
)

const (
	a, b = iota + 1, iota + 2
	c, d

	g, h = iota * 2, iota * 3
	i, k
)

func main() {
	fmt.Println(SHANGHAI)
	fmt.Println(a, b, c, d, g, h, i, k)
}
